﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

public class GUIButton :CustomGUIController
{
    public event UnityAction clicks;
    protected override void DrawStyleOn()
    {
        if (GUI.Button(pos.Pos, content, style))
        { 
            clicks?.Invoke();
        }
    }

    protected override void DrawStyleOff()
    {
        if (GUI.Button(pos.Pos, content))
        {
            clicks?.Invoke();
        }
    }

}
